package com.anycl.design.structural.facade;

public class Facade {

    private FireSystem fireSystem;
    private UserSystem userSystem;

    public Facade(FireSystem fireSystem, UserSystem userSystem) {
        this.fireSystem = fireSystem;
        this.userSystem = userSystem;
    }

    // 模拟射击的门面接口API
    public void shooting() {
        fireSystem.useBullet();
        fireSystem.fire();
        userSystem.loseBlood();
        userSystem.addStore();
    }
}
